//
//  ZSY_AllStoryModel.m
//  ZSY_BreadTrip
//
//  Created by 张诗宇 on 16/1/4.
//  Copyright © 2016年 张诗宇. All rights reserved.
//

#import "ZSY_AllStoryModel.h"

@implementation ZSY_AllStoryModel

- (void)dealloc {
    [_index_cover release];
    [_index_title release];
    [_user release];
    [_userModel release];
    [_share_url release];
    [super dealloc];
}

//- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
//    if ([key isEqualToString:@"user"]) {
//        [self.userModel setValuesForKeysWithDictionary:value];
//    }
//}

- (void)setUser:(NSMutableDictionary *)user {
    [self.userModel setValuesForKeysWithDictionary:user];
}

- (instancetype)init {
    self = [super init];
    if (self) {
        self.userModel = [[ZSY_HomeUserModel alloc] init];
    }
    return self;
}

@end
